// src/router/index.ts
 
import { createHash } from 'crypto'
import { createRouter, RouteRecordRaw, createWebHistory, createWebHashHistory } from 'vue-router'
const routes: RouteRecordRaw[] = [
    {
        path: '/',
        component: () => import('../views/index/index.vue'),
		redirect:'/generateSize'
    },
	{
	    path: '/generateSize',
	    component: () => import('../views/size/generateSize.vue')
	},
	{
	    path: '/addWatermark',
	    component: () => import('../views/image/addWatermark.vue')
	},
]
const router = createRouter({
    // history: createWebHistory(),
	history: createWebHashHistory(),//gitee 单页面，不能使用history,只能使用hash
    routes
})
 
export default router